package com.mall.service;

import com.mall.util.PageUtils;
import com.mall.entity.Goods;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * @author:lck
 * @Date 2024/1/15 16:07
 */

public interface GoodsService {

    PageUtils<Goods> getGoodsList(Integer pageNow, Integer pageSize);

    int delistGoods(ArrayList<String> goodsId);
    int getDelistNum(ArrayList<String> goodsId);
    int listGoods(ArrayList<String> goodsId);

    /**
     * 添加图书，参数是Goods对象
     * @param goods
     * @return
     */
    int addGoods(Goods goods);

    Goods getGoodsById(String goods_id);
    PageUtils<Goods> getGoodsByLike(String keyword, Integer currentPage, Integer pageSize);

}
